package com.six.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import lombok.Data;

import java.util.Date;

@Data
public class Supply {
    @TableId(type= IdType.AUTO)
    private Integer supplyid;
    private String supplyname;
    private Double inprice;
    private Integer quantity;
    private Integer pid;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date indate;
    @TableField(exist = false)
    private Product product;
}
